package com.mycompany.myapp.repository;

import com.mycompany.myapp.domain.ElectricBicycle;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Spring Data  repository for the ElectricBicycle entity.
 */
@SuppressWarnings("unused")
@Repository
public interface ElectricBicycleRepository extends JpaRepository<ElectricBicycle, Long> {

    ElectricBicycle findElectricBicycleByElectricBicycleID(String bicycleID);

//    List<ElectricBicycle> findAllByStewardStateAndUseState(String stewardState,String useState);
//
//    ElectricBicycle findElectricBicycleByUseStateAndStewardState(String useState,String stewardState);
//
    ElectricBicycle findElectricBicycleByStewardStateAndUseState(String stewardState,String useState);

    List<ElectricBicycle> findElectricBicyclesByStewardStateAndUseState(String stewardState,String useState);

}
